package classes
{
	import mx.collections.ArrayCollection;

	public class PlayList
	{
		// Variables
		private var m_name : String;
		private var m_mediaList : ArrayCollection;
		
		// Construct
		public function PlayList(a_listName:String)
		{
			// Set the list name.
			m_name = a_listName;
			
			// Initialize the collection.
			m_mediaList = new ArrayCollection();
		}
		
		// Methods
		public function AddMedia(a_media:MediaFile) : void
		{
			m_mediaList.addItem(a_media);
		}
		
		// Get/Set
		public function get Name() : String
		{
			return m_name;
		}
		
		public function set Name(a_listName:String) : void
		{
			m_name = a_listName;
		}
		
		public function get MediaList() : ArrayCollection
		{
			return m_mediaList;
		}
	}
}